Repository navigation
fix(window): column widths the policy allows, a filled first screen, and an account for lines with no item (0.14.0) - #14
Merged
Merged
Conversation
…ows them The six allocation col widths moved from inline style attributes to classes in payments.css.
Every printable kind was posted and printed through FormTxt 0.38.0 from the shipped templates, with numbered headings, A4 pages for EUR and a statement with rows.
The template use answer names the supplier, items and tax rates by code, and the form looked them up as ids, so a template-started document lost its tax rate and its party.
Records why the col widths left the style attribute and what the enforced policy sweep found.
The web log gives the template code fix and the measured form runs; the internal log gives the FormTxt run with posted documents.
… named A purchase line with no item and no expense account now posts to the purchase.expense_account setting, 5100 by default, and the refusal says what to add when that account is missing.
A sales line with no item and no income account now posts to the sales.income_account setting, 4100 by default, and the refusal says what to add when that account is missing.
The amount, tax and subtotal cells now change the data of their one text node instead of replacing it, so typing a price records no layout shift from a removed node.
Every list and report set its column widths with an inline style attribute, which style-src 'self' blocks, so the widths never applied in the real app. They are set through the style object now.
…unt yet Home returned early for an unclaimed owner, so the desktop app's first screen showed labels and blank panels. Every call it makes already answers for that owner.
Delivery notes asked for 500 and got a 400 on every load.
The grid now exposes refreshHints so a hint can be written once its account name arrives.
A line with no item shows the account it will post to, 5100 for buying and 4100 for selling, and a refusal that names a line lands on that line's error tag too.
Prices, amounts and totals now lay out right to left with plaintext bidi, so a value that grows a digit keeps its anchor and records no layout shift.
Both logs explain the default account rule, the hint, the text node write and the right edge anchor, with the measured runs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(window): column widths the policy allows, a filled first screen, and an account for lines with no item (0.14.0)
Summary
style-src 'self'policy blocks. They are set through the style object now. The payment allocation table had the same fault in six places and now uses classes.no_expense_account. It now posts topurchase.expense_accountor 5100, and a sales line with no item to the newsales.income_accountor 4100. The form shows that account on the line. A refusal about one line shows on that line.Commits
16 commits, oldest first, release commit last:
Version
v0.14.0 (release commit is last). Bumped:
internal/app/version.go,Makefileline 1,web/package.json, two fields inweb/package-lock.json,src-tauri/tauri.conf.json,src-tauri/Cargo.toml, theformledger-desktopentry insrc-tauri/Cargo.lock, the "Current build version" line in the fourHASHOUT_LOG.mdfiles, the README badge, and a newCHANGELOG.mdsection.Checks
All browser checks for this version ran with the content security policy enforced. Earlier checks had bypassed it.
go build ./...passed at each of the 16 commits;go vet ./...,gofmtandnpm run checkinweb/passed at the head.Not run: FormCel's window reading the snapshot. The packaged app, and anything on macOS or Windows. The refusal sentence for a chart with no 5100 or 4100 in a browser. Negative amounts in the form. Light theme for the document form.
Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.